﻿#ifndef MSGBOX_H
#define MSGBOX_H

#include <QDialog>
#include <QLabel>
#include <QPushButton>

#include "enum.h"

class MsgBox : public QDialog
{
    Q_OBJECT
public:
    explicit MsgBox(QString text, QWidget *parent = nullptr);
    ~MsgBox() override;

    void setMsg(QString msg);
    void setButtonText(QString btnText);

protected:
    void keyPressEvent(QKeyEvent* event) override;

private:
    QLabel *m_lblMsg;
    QPushButton* m_btnOk;

private slots:
    void onOk();
};

#endif // MSGBOX_H
